function memoDetect() {
	for (var i = 0; i < memo.num; i++) {
		if (memo.alpha[i] >= 0.8) {
			for (var j = 0; j < 2; j++) {
				if (calLength(fishes.boids[j].x, fishes.boids[j].y, memo.x[i], memo.y[i]) < 2500) {


					for (var t = 0; t < 2; t++) {
						fishes.targetx[t] = memo.x[i];
						fishes.targety[t] = memo.y[i];

						if (fishes.boids[t].spd <= fishes.boids[t].maxspd) {
							fishes.boids[t].spd += 0.2;
						}
						fishes.boids[t].diva = Math.PI / 2; //吃到的那一刻亮一下
					}


					ane.spd = 0.6; //回复海葵速度
					if (dark.a1 > dark.min1) dark.a1 += 0.5 * time;
					if (dark.a2 > dark.min2) dark.a2 += 0.5 * time;


					memo.init(i);//记忆重新生成


					memoC++; //统计吃到记忆的个数
					if (backG.r1 <= 245) {
						var div = 200 * 256;
						backG.r1 += 228 / div;
						backG.g1 += 103 / div;
						backG.b1 += 9 / div;
						backG.r2 += 51 / div;
						backG.g2 += 47 / div;
						backG.b2 += -88 / div;
					}

				}
			}
		}
	}
}